﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;

namespace Infraestructure.CrossCutting.Auditing
{
    /// <summary>
    /// Class used to insert records of auditing
    /// </summary>
    public interface IAuditManager
    {
        /// <summary>
        /// Insert a record to DB used to audit the system later
        /// </summary>
        /// <param name="objectStateManager">The State Manager of Entity Framework</param>
        /// <param name="UserID">User who perform the action</param>
        void InsertAudit(ObjectStateManager objectStateManager, Guid UserID);
        
        /// <summary>
        /// ConnectionString used to connect to DB
        /// </summary>
        string ConnectionString { get; set; }
    }
}
